package com.sti.platform.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.sti.platform.util.excel.ExcelAttribute;
import org.hibernate.annotations.GenericGenerator;

import com.aisino.core.model.BaseModel;

@Entity
@Table(name = "sys_notice")
@GenericGenerator(name = "uuid", strategy = "uuid")
public class Notice extends BaseModel {
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(generator = "uuid")
	private String id;


	@Column(name="type")
	/**类型（0：通知，1:公告）*/
	private String type;

	/**标题*/
	@Column(name="title")
	@ExcelAttribute(name = "标题")
	private String title;

	/**内容*/
	@Column(name="content")
	@ExcelAttribute(name = "内容",width = 200)
	private String content;

	/**公开范围（0:所有人（包括未注册人员），1：系统已注册人员，2：单位管理员3：专家）*/
	@Column(name="level")
	@ExcelAttribute(name = "公开范围")
	private String level;

	/**附件链接地址*/
	@Column(name="linkurl")
	@ExcelAttribute(name = "附件链接地址")
	private String linkurl;

	/**有效开始日期*/
	@Column(name="startdate")
	@ExcelAttribute(name = "有效开始日期")
	private String startdate;

	/**有效结束日期*/
	@Column(name="enddate")
	@ExcelAttribute(name = "有效结束日期")
	private String enddate;

	/**创建人ID*/
	@Column(name="createuserid")
	private String createuserid;

	/**创建人名字*/
	@ExcelAttribute(name = "创建人" )
	@Column(name="createusername")
	private String createusername;

	/**创建时间*/
	@Column(name="createtime")
	@ExcelAttribute(name = "创建时间")
	private String createtime;


	/**状态0 未发布 1 已经发布 */
	@Column(name="state")
	@ExcelAttribute(name = "状态")
	private String state;

	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	/**类型（0：通知，1:公告）*/
	public String getType() {
		return type;
	}

	/**类型（0：通知，1:公告）*/
	public void setType(String type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	/**公开范围（0:所有人（包括未注册人员），1：系统已注册人员，2：单位管理员3：专家）*/
	public String getLevel() {
		return level;
	}

	/**公开范围（0:所有人（包括未注册人员），1：系统已注册人员，2：单位管理员3：专家）*/
	public void setLevel(String level) {
		this.level = level;
	}

	public String getLinkurl() {
		return linkurl;
	}

	public void setLinkurl(String linkurl) {
		this.linkurl = linkurl;
	}

	/**有效开始日期*/
	public String getStartdate() {
		return startdate;
	}

	/**有效开始日期*/
	public void setStartdate(String startdate) {
		this.startdate = startdate;
	}

	/**有效结束日期*/
	public String getEnddate() {
		return enddate;
	}

	/**有效结束日期*/
	public void setEnddate(String enddate) {
		this.enddate = enddate;
	}

	public String getCreateuserid() {
		return createuserid;
	}

	public void setCreateuserid(String createuserid) {
		this.createuserid = createuserid;
	}

	public String getCreateusername() {
		return createusername;
	}

	public void setCreateusername(String createusername) {
		this.createusername = createusername;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}


	
	  
	  
	  
	
}
